package javase2.day02.demo02;

public class Demo04GenericClassInterface {
    public static void main(String[] args) {
        //第一种
        GenericClassInterfaceImpl1 gi=new GenericClassInterfaceImpl1();
        gi.method("ljh");

        //第二种
        GenericClassInterfaceImpl2<Integer> gi2=new GenericClassInterfaceImpl2();
        gi2.method(123);
        GenericClassInterfaceImpl2<Boolean> gi3=new GenericClassInterfaceImpl2<Boolean>();
        gi3.method(true);
    }
}
